package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-15
 * Time: 17:32
 */
class Student{
    public int id;
    public int grade;
}
class AStu extends Student{
    public AStu(int id,int grade){
        this.id = id;
        this.grade = grade;
    }
    public void print(){
        System.out.println(this.id+"的成绩："+this.grade);
    }
}
public class Test2 {
    public static void main(String[] args) {
        AStu stu1 = new AStu(1,99);
        stu1.print();
    }
}
